package com.sajhasite.dao;

import java.io.Serializable;

import org.hibernate.Query;

import com.sajhasite.domain.entity.BaseEntity;

public interface IBaseDao<T extends BaseEntity, I extends Serializable> {

	void delete(T t);

	T get(Class<T> clazz, I id);

	Query getNamedQuery(String queryName);

	T load(Class<T> clazz, I id);
	

	T merge(T t);

	void persist(T t);

	I save(T t);

	void update(T t);

	void saveOrUpdate(T t);
}
